package com.chaofan.dao;

import com.chaofan.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserDao {
    @Select("select * from user")
    List<User> selectUser();

    @Select("SELECT * FROM user WHERE id = #{id}")
    User getUser(@Param("id") int id);
}
